package ui;

import android.app.Activity;
import android.graphics.Typeface;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;

import com.ui.R;

public class MainActivity extends Activity{
	
	private MediaPlayer bip = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.mainlayout);
		
		//View Element
		
		//Media player initialisation
		bip = MediaPlayer.create(this, R.raw.bip); 
		
		//View Initialisation
		
		//textview font setting
		Typeface font = Typeface.createFromAsset(getAssets(), "font/champ.ttf");
	}
	
    @Override
	public boolean onCreateOptionsMenu(Menu menu) {
		MenuInflater inflator=new MenuInflater(this);
		inflator.inflate(R.layout.pref_menu, menu);
		return super.onCreateOptionsMenu(menu);
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
			case R.id.MENU_PREF:
		}
		return super.onOptionsItemSelected(item);
	}
    
	@Override
    public void onResume() {
        super.onResume();        
    }
	
	@Override
    public void onPause() {
        super.onPause();
    }
    
	@Override
	protected void onDestroy() {
		super.onDestroy();	
	}
	
}
